#include "bits/stdc++.h"

using namespace std;

const int N = 110;
int t, n;
int a;

int main()
{
    cin >> t;
    while (t--)
    {
        cin >> n;
        int maxa = 0;
        bool has_negative = false;
        for (int i = 1; i <= n; i++)
        {
            cin >> a;
            if (a < 0)
                has_negative = true;
            maxa = max(maxa, a);
        }

        if (has_negative)
        {
            cout << "no" << endl;
            continue;
        }

        cout << "yes" << endl
             << maxa + 1 << endl;
        for (int i = 0; i <= maxa; i++)
        {
            cout << i << " ";
        }
        cout << endl;
    }
    return 0;
}